home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / GUICtrlCreateDummy.au3 < prev    next >
Text File  |  2006-06-17  |  612b  |  25 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate("GUICtrlCreateDummy",250,200, 100,200)
  4. GUISetBkColor (0x00E0FFFF)  ; will change background color
  5.  
  6. $user = GUICtrlCreateDummy()
  7. $button = GUICtrlCreateButton ("event",75,170,70,20)
  8. $cancel = GUICtrlCreateButton ("Cancel",150,170,70,20)
  9. GUISetState()
  10.  
  11. Do
  12.   $msg = GUIGetMsg ()
  13.       
  14.    Select
  15.       Case $msg = $button
  16.          GUICtrlSendToDummy($user)
  17.       Case $msg = $cancel
  18.          GUICtrlSendToDummy($user)
  19.       Case $msg = $user
  20.          ; special action before closing
  21.          ; ...
  22.          exit
  23.    EndSelect
  24. Until $msg = $GUI_EVENT_CLOSE
  25.